using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using WalkingTec.Mvvm.Core;

namespace HengTong.Model.Db.Hr;

/// <summary>
/// 培训考试表
/// 新增培训表
/// </summary>
public class SysPersonTrainExam : BasePoco
{
    [Display(Name = "员工ID", Description = "关联员工主键", GroupName = "基本信息")]
    public Guid? PersonId { get; set; }

    [Display(Name = "员工", Description = "关联的员工实体", GroupName = "基本信息")]
    public SysPerson Person { get; set; }

    [Required]
    [Display(Name = "培训批次", Description = "关联的培训项目", GroupName = "培训信息")]
    public Guid? PersonTrainBatcheId { get; set; }

    [Display(Name = "培训批次", Description = "关联的培训项目", GroupName = "培训信息")]
    public SysPersonTrainBatche PersonTrainBatche { get; set; }

    [Required]
    [Display(Name = "成绩", Description = "考试成绩", GroupName = "考试信息")]
    [Column(TypeName = "decimal(10,2)")]
    public decimal? Score { get; set; }

    [Display(Name = "成绩单", Description = "成绩单文件", GroupName = "培训信息")]
    public Guid? ScoreReportId { get; set; }

    [Display(Name = "成绩单", Description = "成绩单文件", GroupName = "培训信息")]
    public FileAttachment ScoreReport { get; set; }
}
